Release 10.1A: OpenEdge Development:
Messaging and ESB
Creating a JMS session
These are the general steps to create a JMS session in the 4GL:
- Run
jms/jmssession.p,jms/pubsubsession.porjms/ptpsession.ppersistently with the OpenEdge Adapter for SonicMQ connection parameters asINPUT CHARparameters.- (Optional) Set JMS attributes and parameters by calling internal procedures in the session procedure.
Note: Session attributes cannot be modified after calling the beginSession procedure.- Start the actual JMS connection and session by calling the beginSession procedure.
Creating multiple sessions
A 4GL application can create and connect to multiple Session objects concurrently. You must create separate sessions to connect to each domain (PTP or Pub/Sub) with a separate SonicMQ Broker or a single SonicMQ Broker’s unified domain.
Note: It is recommended that you use the JMS session domain and minimize the number of Session objects. Each session represents a separate SonicMQ client session and you want to minimize the number of SonicMQ client sessions.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |